//package com.yunatt.websocket;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.FileSystemXmlApplicationContext;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.*;
//import java.io.IOException;
//import java.net.UnknownHostException;
//
//@Component
//public class StartFilter implements Filter {
//	public static Logger logger = LoggerFactory.getLogger(StartFilter.class);
//	public void destroy() {
//
//	}
//
//	public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
//			throws IOException, ServletException {
//
//	}
//
//	public void init(FilterConfig arg0) throws ServletException {
//		this.startWebsocketInstantMsg();
//	}
//
//	@Autowired
//	private WSServer wsServer;
//	/**
//	 * 启动即时聊天服务
//	 */
//	public void startWebsocketInstantMsg() {
//		wsServer.start();
//		logger.info("启动连接");
//	}
//}